//用户字段
Ext.user.yuyuecountcolumn = new Ext.grid.ColumnModel([
	new Ext.grid.RowNumberer(),
	{xtype: 'gridcolumn',header: '帐号',dataIndex: 'account',sortable: true,width: 10,align: 'center'},
    {xtype: 'gridcolumn',header: '姓名',dataIndex: 'nickname',sortable: true,width: 10,align: 'center'},
    {xtype: 'gridcolumn',header: '最后填写时间',dataIndex: 'date',sortable: true,width: 15,renderer:Ext.user.method.date},
	{xtype: 'gridcolumn',header: '状态',dataIndex: 'status',sortable: true,width: 15,renderer:Ext.user.method.status},
	{xtype: 'gridcolumn',header: '操作',dataIndex: 'id',sortable: true,width: 15}
				]);
Ext.user.yuyuecounttabara = [

];
Ext.user.yuyuecountbar = {border:true,frame:true,id:'yuyuecountsearch',xtype:'form',title:'',height:40,layout: 'column',items:Ext.user.yuyuecounttabara};

Ext.user.yuyuecountdatalist = Ext.extend(Ext.Panel, { 
    border: false,
	renderTo:'yuyuecount_index',
	title:'预约统计',
	tbar:Ext.user.yuyuecountbar,
    initComponent: function() {
        this.items = [
            {
                id:'yuyuecountlisteditgrid',xtype: 'editorgrid', title: '', store: 'yuyuecountStore', height: 500, loadMask: true, frame: true,trackMouseOver:true,
				columnLines:true,cm: Ext.user.yuyuecountcolumn,sm: new Ext.grid.RowSelectionModel({ 
					singleSelect: true
				}),
			    viewConfig: {forceFit: true}
            }
        ];
		 this.bbar = new Ext.PagingToolbar({
            pageSize: Ext.sysconfig.pageSize,
            store: 'yuyuecountStore',
            displayInfo: true,
            displayMsg: Ext.sysconfig.pagemsg,
            emptyMsg: Ext.sysconfig.emptyList
			
        });
        Ext.user.yuyuecountdatalist.superclass.initComponent.call(this);
    }
});

Ext.user.yuyuecountstoreWriter = new Ext.data.JsonWriter({
    encode: false
	
}); 

Ext.user.yuyuecountproxy = new Ext.data.HttpProxy({
    api: {
			read : Ext.user.baseUrl +'/Yuyuecount/data/'
		 }
});
//数据
Ext.user.yuyuecountdata = new Ext.data.JsonStore({
            storeId: 'yuyuecountStore',
			writer:Ext.user.yuyuecountstoreWriter,
			proxy:Ext.user.yuyuecountproxy,
            autoLoad: true,
			root:'list',
			totalProperty: 'count',
			baseParams:{'do':'tongji'},
			paramNames:{'start':'page','limit':'limit'},
            fields: ['id','account','status','nickname','date']
});
